module.exports = {
  devServer: {
    host: 'localhost',
    port: 3030, // 端口
    https: false,
    proxy: {
        // 配置跨域
        '/api': {
            target: 'http://81.68.254.47', // 代理的接口域名以及端口号；
            ws: true, // 支持ws协议；websocket的缩写；
            changeOrigin: true, // 是否跨域
            pathRewrite: { // 路径替换
                '^/api': '/api'
            }
        }
    },
    hotOnly: false,
    before: app => {}
},
  lintOnSave: false,
    // CSS Sourcemaps off by default because relative paths are "buggy"
    // with this option, according to the CSS-Loader README
    // (https://github.com/webpack/css-loader#sourcemaps)
    // In our experience, they generally work as expected,
    // just be aware of this issue when enabling this option.
}
